package com.ycxy.crm.settings.service.impl;

import com.ycxy.crm.settings.domain.User;
import com.ycxy.crm.settings.mapper.UserMapper;
import com.ycxy.crm.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author jayLuo
 * @Date 2022/9/19 19:49
 * @PackageName:com.ycxy.crm.settings.service.impl
 * @ClassName: UserServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByLoginActAndPwd(Map<String, Object> map) {
        return userMapper.selectUserByLoginActAndPwd(map);
    }

    @Override
    public List<User> queryAllUsers() {
        return userMapper.selectAllUsers();
    }

}
